home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Tele / S / Servant 1.26e updater / stack_-1.xml < prev    next >
Encoding:
Extensible Markup Language  |  1993-05-01  |  2.1 KB  |  20 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.26e updater</name>
  5.     <id>-1</id>
  6.     <cardCount>1</cardCount>
  7.     <cardID>2823</cardID>
  8.     <listID>3717</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>320</width>
  14.         <height>272</height>
  15.     </cardSize>
  16.     <script>function getHandler handlerName,scriptText,returnOffsets-- script 2-11:  Extract a handler from a script.-- Given the name of a handler and a script, this handler gets-- the text of the specified handler.  Optionally, it will-- return starting and ending character expressions of the handler.-- check for function first because on is a substring of functionget offset("function " & handlerName,scriptText)if it is zero then get offset("on " & handlerName,scriptText)put it into startCharput return & "end " & handlerName into footerput offset(footer,scriptText) into endCharif endChar is not zero thenadd length(footer) to endCharrepeat until char endChar of scriptText is return ¬¨or char endChar of scriptText is empty -- skip commentadd 1 to endCharend repeatrepeat while char endChar + 1 of scriptText is returnadd 1 to endChar -- take trailing returnsend repeatend ifif returnOffsets is truethen return startChar & "," & endCharelse return char startChar to endChar of scriptTextend getHandlerfunction putHandler newHandler,scriptText-- script 2-12:  Place a handler into a script.-- Given the name of a handler and a script, this handler puts-- the text of the specified handler into the specified script,-- replacing the previous version of the handler in that script.put word 2 of newHandler into handlerNameput getHandler(handlerName,scriptText,true) into offsetsput item 1 of offsets into startCharput item 2 of offsets into endCharput newHandler & return into char startChar to endChar of scriptTextreturn scriptTextend putHandler</script>
  17.     <background id="2751" file="background_2751.xml" name="" />
  18.     <card id="2823" file="card_2823.xml" marked="false" name="" owner="2751" />
  19. </stack>
  20.